﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL;
using Models;

namespace Player.ShouYe
{
    public partial class SYwe1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Request.QueryString["Gmid"] != null)
                {
                    int gmid = int.Parse(Request.QueryString["Gmid"]);
                    //显示游戏信息
                    this.rpt_gmdesc.DataSource = BLL.GameManage.SeleIdGame(gmid);
                    this.rpt_gmdesc.DataBind();
                    //显示对应评论
                    this.DataList1.DataSource = BLL.CommentsManage.SeleGameIdComments(gmid);
                    this.DataList1.DataBind();
                    

                }
                
            }
        }

        protected void DataList1_SelectedIndexChanged(object sender, EventArgs e)
        {

        }
    }
}